import axios from 'axios'

const BASE_PATH = 'http://192.168.68.138:8080/calculator'
export default {
  calculate ({ name, weapon, artifacts }) {
    return axios.post(`${BASE_PATH}/calculate`, { name, weapon, artifacts })
  },
  suit ({ name, suit, weapon, keywords }) {
    return axios.post(`${BASE_PATH}/suit`, { name, suit, weapon, keywords })
  },
  doubleSuit ({ name, suitKeyword1, suitKeyword2, weapon, keywords }) {
    return axios.post(`${BASE_PATH}/doubleSuit`, { name, suitKeyword1, suitKeyword2, weapon, keywords })
  }
}
